{extend name="public/base"}

{block name="title"}
仲裁详情
{/block}

{block name="style"}
{css href="/static/wechat/css/refund.css" /}
{/block}

{block name="body"}
<div class="pageControl orderDetails">
    <div class="msui_nav msui_navTop" style="border-bottom: 1px solid #cccccc;">
        <a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">仲裁详情</h1>
    </div>
    <div class="weui-top">
        <div class="weui-panel weui-panel_access">
            <div class="weui-panel__bd">
            <span class="weui-media-box weui-media-box_appmsg span_solid">
                <img class="weui-media-box__thumb jujue_img" src="/static/wechat/images/jujuetuikuan_03.png">
              <div class="weui-media-box__bd">
                  <p class="weui-media-box__desc fs08" style="padding: 0px 15px;">{$data.status|get_order_austin_status=###, $data.audit_type}</p>
              </div>
            </span>
                <div class="weui-media-box__bd">
                    {switch name="data.status"}
                    {case value="4"}
                    <p class="weui-media-box__desc fs065 fs065color"style="padding: 20px 15px;">平台受理中，在此期间建议您与商家协商解决。平台会根据实际情况判定处理结果</p>
                    {/case}
                    {case value="5"}
                    <p class="weui-media-box__desc fs065 fs065color"style="padding: 20px 15px;">{$data.result_msg}</p>
                    {/case}
                    {/switch}
                </div>
            </div>
        </div>

        <!--退款详情-->
        <div class="tuikuandiv">
            <p>退款金额：<span>￥{$data.return_money}</span></p>
            <!--<p>退款单号：<span>135416587135130534135613151</span></p>-->
            <p>申请时间：<span>{$data.audit_result_time|date='Y-m-d H:i:s', ###}</span></p>
            <p>退款原因：<span>{$data.audit_result_cause}</span></p>
            <p><span class="wentims">问题描述：</span><span class="miaoshu">{$data.audit_result_msg}</span></p>


            <!--用户退款附带的图片-->

            <div class="yhimg">
                {notempty name="data.img3"}
                <div>
                    <img src="{$data.img3|get_img_url}" />
                </div>
                {/notempty}
                {notempty name="data.img2"}
                <div>
                    <img src="{$data.img2|get_img_url}" />
                </div>
                {/notempty}
                {notempty name="data.img1"}
                <div>
                    <img src="{$data.img1|get_img_url}" />
                </div>
                {/notempty}
            </div>
        </div>

        <!--查看完整协商记录-->
        <!--<a class="axieyi">查看完整协商记录<i class="wzright"></i></a>-->

    </div>

</div>
<div id="loadingToast" style="display:none;">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast">
        <i class="weui-loading weui-icon_toast"></i>
        <p class="weui-toast__content">数据加载中</p>
    </div>
</div>
{/block}

{block name="javascript"}
{js href="/static/wechat/js/refund.js" /}

<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
    if (isWeiXin()) {
        wx.config({
            //debug: true,
            appId: '{$signPackage.appId}',
            timestamp: parseInt('{$signPackage.timestamp}'),
            nonceStr: '{$signPackage.nonceStr}',
            signature: '{$signPackage.signature}',
            jsApiList: [
                // 所有要调用的 API 都要加到这个列表中
                'previewImage'
            ]
        });
        //调微信原生查看图片
        $('.yhimg img').click(function(){
            var tmpArr = new Array();
            for(i=0;i<$('.yhimg img').length;i++){
                tmpArr[i] = $('.yhimg img')[i].src;
            }
            try{
                wx.previewImage({current:$(this)[0].src,urls:tmpArr});
            }catch(e){alert('需要在微信中查看');}
        });
    }

</script>

{/block}